<?php

class finance_finder_axbill
{

	var $column_edit = '操作';
	var $column_edit_width = "50";
	public function column_edit($row)
	{

        $finder_id = $_GET['_finder']['finder_id'];

        $stockappMdl = app::get('finance')->model('axbill');
        $stockapp_datas= $stockappMdl->dump($row['id'],'status');
        if($stockapp_datas['status']=='unconfirmed')
        {
            return '<a href="index.php?app=finance&ctl=axbill&act=lmedit&id=' . $row['id'] . '&finder_id='.$finder_id.'" target="dialog::{width:660,height:350,title:\'编辑数据\'}">编辑</a>';
        }else
        {
            return '';
        }
	}
    // var $detail_axbill_line = "明细记录";
    // function detail_axbill_line($row){
    //     $render = app::get('finance')->render();
    //     $sql="SELECT * from sdb_finance_axbill_line where bill_id=".$row;
        
    //     $db=kernel::database();
    //     $basicMaterialInfo=$db->select($sql);   
    //     // foreach ($basicMaterialInfo as $key => $value) 
    //     // {
    //     //     // $basicMaterialInfo[$key]['createtime']=Date('Y-m-d h:i:s',$value['createtime']);

    //     //     // $basicMaterialInfo[$key]['nums']=floatval($value['nums']);
    //     // }
    //     $render->pagedata['res'] = $basicMaterialInfo;
    //     return $render->fetch('axbill/axbill_line.html');
    // }

}